package com.ruoyi.basic.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工人工日单价历史数据对象 tb_price_history
 * 
 * @author ruoyi
 * @date 2022-12-05
 */
public class TbPriceHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 类型：1代表中国；2代表外国 */
    @Excel(name = "工日单价类型",dictType = "history_price_type")
    private Integer priceType;

    /** 国别 */
    @Excel(name = "国别",dictType = "country_list")
    private String countryType;

    /** 年份 */
    @Excel(name = "年份", width = 4, dateFormat = "yyyy")
    private Integer year;

    /** 货币类型 */
    @Excel(name = "货币类型",dictType = "currency_type")
    private String currencyType;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal priceVal;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPriceType(Integer priceType) 
    {
        this.priceType = priceType;
    }

    public Integer getPriceType() 
    {
        return priceType;
    }
    public void setCountryType(String countryType) 
    {
        this.countryType = countryType;
    }

    public String getCountryType() 
    {
        return countryType;
    }
    public void setYear(Integer year)
    {
        this.year = year;
    }

    public Integer getYear()
    {
        return year;
    }
    public void setCurrencyType(String currencyType) 
    {
        this.currencyType = currencyType;
    }

    public String getCurrencyType() 
    {
        return currencyType;
    }
    public void setPriceVal(BigDecimal priceVal) 
    {
        this.priceVal = priceVal;
    }

    public BigDecimal getPriceVal() 
    {
        return priceVal;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("priceType", getPriceType())
            .append("countryType", getCountryType())
            .append("year", getYear())
            .append("currencyType", getCurrencyType())
            .append("priceVal", getPriceVal())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
